package main

import (
	"fmt"
	"net"
)

func main() {

	serverAddr := "localhost:8090"
	tcpAddr, err := net.ResolveTCPAddr("tcp", serverAddr)
	if err != nil {
		fmt.Println("resolve server error", err)
	}

	conn, err := net.DialTCP("tcp4", nil, tcpAddr)
	defer conn.Close()
	if err != nil {
		fmt.Println("connect server error", err)
	}

	conn.Write([]byte("hello, I am clinet"))

}
